package red.action;

import com.opensymphony.xwork2.Action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import red.mapper.Testmapper;
import red.model.UserModel;
import red.service.TestService;
import red.service.impl.TestServicelmpl;
import red.util.BaseAction;
import red.util.Model;

import java.util.List;

public class TestAction extends BaseAction {
    private List<UserModel> userModels;

    @Autowired
    private TestService testService;

    public List<UserModel> getUserModels() {
        return userModels;
    }
    public void setUserModels(List<UserModel> userModels) {
        this.userModels = userModels;
    }
    public String selectb(){
        Model model = getParams();
        userModels=testService.selectuser(model);
        return Action.SUCCESS;
    }
}
